<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		
		<script>
			var direction = prompt();
			
			switch (direction) {
				case "上":
					console.log("机器人向上走");
					break;
				case "下":
					console.log("机器人向下走");
					break;
				case "左":
					console.log("机器人向左走");
					break;
				case "右":
					console.log("机器人向右走");
					break;
				default:
					console.log("原地不动");
			}
			
		</script>
	</body>
</html>
